<template>
    <view class="container">
        <!-- 顶部标题栏 -->
        <view class="header">
            <view class="back-btn">
                <text class="back-icon">←</text>
            </view>
            <text class="title">洗车</text>
            <view class="placeholder"></view>
        </view>

        <!-- 加油站信息 -->
        <view class="station-info">
            <view class="station-header">
                <image class="station-icon" src="/static/addOil/jiayou.png" mode="aspectFit"></image>
                <text class="station-name">中国石油加油站（解放路店）</text>
            </view>
            
            <view class="info-row">
                <view class="text-content">
                    <view class="operation-time">
                        <text>营业时间：周一至周五早上8:00-晚上22:00</text>
                    </view>
                    
                    <view class="location">
                        <text class="address-text">位置：山阳区人民路与解放路交叉口</text>
                        <image class="plane-icon" src="/static/order/plane.png" mode="aspectFit"></image>
                    </view>
                </view>
                
                <view class="phone-btn">
                    <image class="phone-icon" src="/static/addOil/phone.png" mode="aspectFit"></image>
                </view>
            </view>
        </view>

        <!-- 油价详情 -->
        <view class="price-section">
            <text class="section-title">油价详情</text>
            
            <view class="price-list">
                <view class="price-item">
                    <text class="oil-type">92#</text>
                    <text class="oil-price">￥5.86/L</text>
                </view>
                <view class="price-item">
                    <text class="oil-type">95#</text>
                    <text class="oil-price">￥5.86/L</text>
                </view>
                <view class="price-item">
                    <text class="oil-type">98#</text>
                    <text class="oil-price">￥5.86/L</text>
                </view>
                <view class="price-item">
                    <text class="oil-type">0#</text>
                    <text class="oil-price">￥5.86/L</text>
                </view>
            </view>
        </view>
    </view>
</template>

<script setup>
// 这里可以添加页面逻辑
// 例如：获取加油站详情数据、拨打电话、导航等功能
</script>

<style scoped>
.container {
    display: flex;
    flex-direction: column;
    background-color: #f5f5f5;
    min-height: 100vh;
}

/* 顶部标题栏样式 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
}

.back-btn {
    width: 30px;
    height: 30px;
}

.back-icon {
    font-size: 24px;
    font-weight: bold;
}

.title {
    font-size: 18px;
    font-weight: bold;
}

.placeholder {
    width: 30px;
}

/* 加油站信息样式 */
.station-info {
    background-color: #ffffff;
    padding: 15px;
    margin-bottom: 10px;
    position: relative;
}

.station-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.station-icon {
    width: 330px;
    height: 200px;
    margin-bottom: 8px;
    align-self: flex-start;
}

.station-name {
    font-size: 18px;
    font-weight: bold;
    text-align: left;
    line-height: 1.2;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.text-content {
    flex: 1;
}

.operation-time {
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
    line-height: 1.3;
}

.location {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 14px;
    line-height: 1.3;
}

.address-text {
    flex: 1;
}

.plane-icon {
    width: 14px;
    height: 14px;
    margin: 0 20px 0 10px;
}

.phone-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 15px;
    margin-top: -10px; /* 向上移动与营业时间对齐 */
}

.phone-icon {
    width: 44px;
    height: 44px;
}

/* 油价详情样式 */
.price-section {
    background-color: #ffffff;
    padding: 15px;
}

.section-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 12px;
    display: block;
}

.price-list {
    display: flex;
    flex-direction: column;
}

.price-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.price-item:last-child {
    border-bottom: none;
}

.oil-type {
    color: #333;
    font-size: 15px;
}

.oil-price {
    color: #e54545;
    font-size: 15px;
    font-weight: 500;
}
</style>